﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SaldoKardexProyGrid.ascx.cs"

 Inherits="UILGestion.Main.Inventario.SaldoKardexProyGrid" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<table>
<tr>
<td>
<asp:DataPager ID="pager" PagedControlID="ComparativoListView" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
</td>
<td>
    <asp:LinkButton ID="actualiza" runat="server" OnClick="update" Text="Actualizar"  ForeColor="Blue"/>
</td>
</tr>
</table>
<asp:ListView ID="ComparativoListView" runat="server" OnDataBound="ListView1_DataBound" 
    onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server"  class="yui-grid">
            
            <tr id="Tr1" runat="server" >
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="proyecto" runat="server">Año</asp:LinkButton>
                </th>
                <th id="Th4" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="proyecto" runat="server">Mes</asp:LinkButton>
                </th>
              
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="proyecto" runat="server">Proyecto</asp:LinkButton>
                </th>
                
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="valorizado" runat="server">Valorizado </asp:LinkButton>
                </th>
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#eee":"#fff" %>'>
            <td  width="120px">
                <%# Eval("anio")%><br />
            </td>
            <td width="70px">
                <%# Eval("mes")%><br />
            </td>
             <td width="350px">
                <%# Eval("descripcion")%><br />
            </td>
             <td align="right">
               <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"SaldoActual").ToString()%>'  
                 Target="_blank"  ID="SaldoKardex"
                NavigateUrl='<%# "~/Rpt/PrintForm.aspx?type=CIERRE&anio=" + DataBinder.Eval (Container.DataItem,"anio").ToString() + 
                 "&mes=" + DataBinder.Eval(Container.DataItem,"mes").ToString() +
                 "&idProyecto=" + DataBinder.Eval(Container.DataItem,"idProyecto").ToString()+"&resu=2"  %>'
               />  
                </td>
          
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" style="">
            <tr>
                <td>
                     <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>





    
     